<?php

defined('_JEXEC') or die;

class bgData{
	
    function getFacilityType(){
        return array(
            "1"=>"体育館",
            "2"=>"艇庫",
            "3"=>"プール",
            "4"=>"プール（温水）",            
            "5"=>"プール（加温）",
            "6"=>"プール（温水なし）"
        );
    }
    //get DM classification
    function getDMClassification(){
        return array(
            "0"=>"所在地に送付",
            "1"=>"連絡先に送付",
            "2"=>"DM住所に送付"
        );
    }
    
    function getActivity(){
        return array(
            "1"=>"統合型クラブ",
            "2"=>"高齢者事業",
            "3"=>"カヌー",
            "4"=>"ヨット",
            "5"=>"学校教育関連事業",
            "6"=>"外部団体の受け入れ"
        );
    }
    /* get pool type */
    function getPoolType(){
        return array(
            "1"=>"屋根無",
            "2"=>"屋根あり",
            "3"=>"屋内"
        );
    }
    /* get gym type */
    function getGymType(){
        return array(
            "1"=>"第一体育館",
            "2"=>"第二体育館"
        ); 
    }
    /* get extension facility */
    function getExtendFac(){
        return array(
            "1"=>"幼児プール",
            "2"=>"身障者昇降",
            "3"=>"オゾン殺菌",
            "4"=>"ジャグジー",
            "5"=>"採暖室",
            "6"=>"レクリエーション施設",
            "7"=>"玄関",
            "8"=>"トイレ",
            "9"=>"更衣室",
            "10"=>"シャワー",
            "11"=>"プール"
        ); 
    }
    /* get water type */
    function getPoolPohk(){
        return array(
            "1"=>"温水プール",
            "2"=>"加温プール",
            "3"=>"温水なし"
        );
    }
    /* get meeting type */
    function getPoolMetk(){
        return array(
            "0"=>"無し",
            "1"=>"会議室",
            "2"=>"トレーニング",
            "3"=>"その他"
        );
    }
    /*get gym 1,2 */
    function getGym(){
        return array(
            "1"=>"第一体育館",
            "2"=>"第二体育館"
        );
    }
    /* get gym meeting */
    function gymtMetk(){
        return array(
            "1"=>"会議室",
            "2"=>"トレーニングルーム",
            "3"=>"その他"
        );
    }
    /* get list diabled */
    function getListDisabled(){
        return array(
            "1"=>"玄関",
            "2"=>"トイレ",
            "3"=>"更衣室",
            "4"=>"シャワー"
        );
    }
    /* get list equipment */
    function getListEquipment(){
        return array(
            "1"=>"柔道マット",
            "2"=>"トレーニング機材",
        );
    }
    /* get list full-time employee */
    function getListFullEmploy(){
        return array(
            "0"=>"非常勤",
            "1"=>"常勤"
        );
    }
    /* get list dock type */
    function getListDockType(){
        return array(
            "0"=>"無し",
            "1"=>"有り",
            "2"=>"近隣に有り"
        );
    }
    /* get list diabled dock */
    function getListDisabledDock(){
        return array(
           "1"=>"トイレ",
           "2"=>"更衣室",
           "3"=>"シャワー"
        );
    }
    /* get list DOCK_RSVF */
    function getListDock_rsvf(){
        return array(
           "0"=>"なし",
           "1"=>"あり（チェック）"
        );
    }
    /**
    * Menu Frontend
    * Author: Hung
   */
   function getMenu(){
        $menu = array(
            "com_cpanel"=>"HOME"
        );

        $aut = new bgAuthorize();
        $arr = $aut->getPerm($aut->getUserGroup(),'com_frcenter');
        if($arr->PRRM_INSERT || $arr->PRRM_UPDATE || $arr->PRRM_DELETE || $arr->PRRM_EDITOWN){
            $menu['com_frcenter'] = "海洋センター情報";
        }
        $arr = $aut->getPerm($aut->getUserGroup(),'com_frclub');
        if($arr->PRRM_INSERT || $arr->PRRM_UPDATE || $arr->PRRM_DELETE || $arr->PRRM_EDITOWN){
            $menu['com_frclub'] = "海洋クラブ情報";
        }
        $arr = $aut->getPerm($aut->getUserGroup(),'com_frtown');
        if($arr->PRRM_INSERT || $arr->PRRM_UPDATE || $arr->PRRM_DELETE || $arr->PRRM_EDITOWN){
            $menu['com_frtown'] = "市町村情報";
        }
        $arr = $aut->getPerm($aut->getUserGroup(),'com_frleader');
        if($arr->PRRM_INSERT || $arr->PRRM_UPDATE || $arr->PRRM_DELETE || $arr->PRRM_EDITOWN){
            $menu['com_frleader'] = "指導者情報";
        }
        $arr = $aut->getPerm($aut->getUserGroup(),'com_frstatistic');
        if($arr->PRRM_INSERT || $arr->PRRM_UPDATE || $arr->PRRM_DELETE || $arr->PRRM_EDITOWN){
            $menu['com_frstatistic'] = "活動人数集計";
        }
        $arr = $aut->getPerm($aut->getUserGroup(),'com_frinformation');
        if($arr->PRRM_INSERT || $arr->PRRM_UPDATE || $arr->PRRM_DELETE || $arr->PRRM_EDITOWN){
            $menu['com_frinformation'] = "インフォメーション";
        }
        $arr = $aut->getPerm($aut->getUserGroup(),'com_fractivitive');
        if($arr->PRRM_INSERT || $arr->PRRM_UPDATE || $arr->PRRM_DELETE || $arr->PRRM_EDITOWN){
            $menu['com_fractivitive'] = "活動情報";
        }
        $arr = $aut->getPerm($aut->getUserGroup(),'com_frdownload');
        if($arr->PRRM_INSERT || $arr->PRRM_UPDATE || $arr->PRRM_DELETE || $arr->PRRM_EDITOWN){
            $menu['com_frdownload'] = "ダウンロード集";
        }
        $arr = $aut->getPerm($aut->getUserGroup(),'com_frquestion');
        if($arr->PRRM_INSERT || $arr->PRRM_UPDATE || $arr->PRRM_DELETE || $arr->PRRM_EDITOWN){
            $menu['com_frquestion'] = "アンケート";
        }
        $arr = $aut->getPerm($aut->getUserGroup(),'com_frmessage');
        if($arr->PRRM_INSERT || $arr->PRRM_UPDATE || $arr->PRRM_DELETE || $arr->PRRM_EDITOWN){
            $menu['com_frmessage'] = "メッセージ";
        }
        
        return $menu;
   }
   
   /**
    * Menu detail frTown
    * Author: Hung
   */
   function getMenuDetailTown(){
        return array(
            "detail"=>"基本情報",
            "center_club"=>"センター・クラブ",
            "information"=>"その他情報"
        );
   }
   
   /**
    * Menu detail frCenter
    * Author: Tai
   */
   function getMenuDetailCenter(){
        return array(
            "detail"=>"基本情報",
            "town"=>"市町村情報",
            "club"=>"所属クラブ",
            "contact"=>"問合せ先",
            "activitive"=>"活動情報",
            "count_data"=>"活動人数集計",
            "gymt"=>"体育館",
            "pool"=>"プール",
            "boathouse"=>"艇庫",
            "coach"=>"指導者",
            "other_info"=>"その他情報"
        );
   }
   
   /**
    * Menu detail frClub
    * Author: hien
   */
   function getMenuDetailClub(){
        return array(
            "detail"=>"基本情報",
            "town"=>"市町村情報",
            "center"=>"海洋センター",
            "contact"=>"問合せ先",
            "activitive"=>"活動情報",
            "count"=>"活動人数集計",            
            "boathouse"=>"艇庫",           
            "coach"=>"指導者",
            "other_info"=>"その他情報"
        );
   }
   
   //get RECOMMENDED_DEGREE
   function getRecommended(){
        return array(
            "1"=>"★",
            "2"=>"★★",
            "3"=>"★★★",
        );
    }
    
    
    //Ngay thong bao thong tin moi
   function getNumNew(){
        return "2";
    }
}
